//
//  LSMenuCell.m
//  LibraryStorm
//
//  Created by Enel@Lightning on 4/9/14.
//  Copyright (c) 2014 3ATeam. All rights reserved.
//

#import "LSMenuCell.h"
#import "LSCustomCellBackground.h"

@implementation LSMenuCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
    }
    return self;
}

- (void)awakeFromNib
{
    // Initialization code
    LSCustomCellBackground *backgroundView = [[LSCustomCellBackground alloc] initWithFrame:CGRectZero];
    self.selectedBackgroundView = backgroundView;
    self.titleLabel.font = Roboto_Regular(IS_DEVICE_IPAD ? 20 : 14);
    self.titleLabel.textColor = [UIColor blackColor];
    self.titleLabel.highlightedTextColor = [UIColor whiteColor];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
    if (selected) {
        self.titleLabel.textColor = [UIColor whiteColor];
    }else {
        self.titleLabel.textColor = [UIColor blackColor];
    }
}

@end
